Startscreen = function(ctx){

	this.ctx = ctx
	this.type='Startscreen';

	this.returnValue = null;
	this.gameloop = null;

	this.init = function(gameloop){
		this.gameloop = gameloop;

		$('#startscreen').fadeIn();

		$('#startscreen a').click(function(event){
			event.preventDefault();
			this.returnValue = 'next';
			$('#startscreen').fadeOut();
			
		}.bind(this));

		$('#startscreen>p').each(function(index,element){
			window.setTimeout(function(){
					$(this).fadeIn();

				}.bind(element),
				(index+1)*2500
			);
		});

	};


	this.loop = function(){
		return this.returnValue;
	};

	this.draw = function(){

	};

}